Skip to content

Conversation

@IsaacOscar
Copy link
Collaborator

I don't know why I bothered with this (is there any reason to use dnf over dnf5, even when running the simply test cases it's noticibly slower), but since dnf v4 is in the openSUSE Tumbleweed repositories, I felt like cnf was incomplete without it.

Note that the docker image for dnf4 could trivially be generated by:

sed -i 's/dnf5/dnf/g' dnf5.dockerfile > dnf.dockerfile

The changes to he rust code are a little less trivial as dnf uses different folders for the .repo and solv files.

This relies on various changes made by my previous pull requests (#34, #35, and #36), only the last 3 commits are new.
Hopefully this will be my last pull request.

This makes cnf use dnf4 data if you have /usr/bin/dnf,
but not /usr/bin/dnf5.
The CI tests are identical to the dnf5 ones, except they use dnf
instead of dnf5.
@vyskocilm vyskocilm merged commit 56876b5 into openSUSE:main Aug 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants